import 'package:flutter/cupertino.dart';
import 'package:frametrim/activity/loginPage.dart';
import 'package:frametrim/activity/mainPage.dart';
import 'package:frametrim/activity/splashPage.dart';
import 'package:get/get.dart';

import '../activity/government/CompanyAccountManageDetailsPage.dart';
import '../activity/government/CompanyAccountManagePage.dart';
import '../activity/government/CompanyCreditPointDetailsPage.dart';
import '../activity/government/CompanyCreditPointPage.dart';
import '../activity/government/CompanyMessManageDetailsPage.dart';
import '../activity/government/CompanyMessManagePage.dart';
import '../activity/government/ProjectCreditPointDetailsPage.dart';
import '../activity/government/ProjectCreditPointPage.dart';
import '../activity/government/ProjectMessManagePage.dart';
import '../activity/government/ProjectMessManagerDetailsPage.dart';
import '../activity/government/ProjectSalaryDetailPage.dart';
import '../activity/government/ProjectSalaryIssuePage.dart';
import '../activity/projectAttendanceManagementPage.dart';

class Routes {
  static const SPLASH = "/splash";
  static const LOGIN = "/login";
  static const MAIN = "/main";
  static const PROJECT_MESS_MANAGER_LIST = "/projectMessManager";
  static const PROJECT_MESS_MANAGER_DETAILS = "/projectMessManagerdetails";
  static const PROJECT_ATTENDANCE_MANAGER_LIST = "/projectAttendanceManagementPage";
  static const Project_Salary_Issue_List = "/projectSalaryIssuePage";
  static const Project_Salary_Issue_Details = "/ProjectSalaryIssueDetailsPage";
  static const Company_Account_Manage_List = "/CompanyAccountManagePage";
  static const Company_Account_Manage_Details = "/CompanyAccountManageDetailsPage";
  static const Company_Mess_Manage_List = "/CompanyMessManagePage";
  static const Company_Mess_Manage_Details = "/CompanyMEssManageDetailsPage";
  static const Project_Credit_Point_List = "/ProjectCreditPointPage";
  static const Project_Credit_Point_Details = "/ProjectCreditPointDetailsPage";
  static const Company_Credit_Point_List = "/CompanyCreditPointPage";
  static const Company_Credit_Point_Details = "/CompanyCreditPointDetailsPage";

  /* static Map<String, WidgetBuilder>  routes = {
    SPLASH: (BuildContext context) => new SplashPage(),
    LOGIN: (BuildContext context) => new LoginPage(),
    MAIN: (BuildContext context) => new MainPage(),
    PROJECT_MESS_MANAGER: (BuildContext context) => new ProjectMessManagerPage(),
  };*/

  ///别名映射页面
  static final List<GetPage> getPages = [
    //启动页
    GetPage(
      name: SPLASH,
      page: () => SplashPage(),
    ),
    //登录
    GetPage(
      name: LOGIN,
      page: () => LoginPage(),
    ),
    //主页面
    GetPage(
      name: MAIN,
      page: () => MainPage(),
    ),
    //政府端-项目信息管理列表
    GetPage(
      name: PROJECT_MESS_MANAGER_LIST,
      page: () => ProjectMessManagerPage(),
    ),
    //政府端-项目信息管理-详情
    GetPage(
      name: PROJECT_MESS_MANAGER_DETAILS,
      page: () => ProjectMessManagerDetailsPage(),
    ),
    //政府端-项目考勤管理
    GetPage(
      name: PROJECT_ATTENDANCE_MANAGER_LIST,
      page: () => ProjectAttendanceManagementPage(),
    ),
    //政府端-项目工资发放
    GetPage(
      name: Project_Salary_Issue_List,
      page: () => ProjectSalaryIssuePage(),
    ),
    //政府端-项目工资发放-详情
    GetPage(
      name: Project_Salary_Issue_Details,
      page: () => ProjectSalaryIssueDetailsPage(),
    ),
    //政府端-企业账号管理-列表
    GetPage(
      name: Company_Account_Manage_List,
      page: () => CompanyAccountManagePage(),
    ),
    //政府端-企业账号管理-列表
    GetPage(
      name: Company_Account_Manage_Details,
      page: () => CompanyAccountManageDetailsPage(),
    ),
    //政府端-企业信息管理-列表
    GetPage(
      name: Company_Mess_Manage_List,
      page: () => CompanyMessManagePage(),
    ),
    //政府端-企业信息管理-详情
    GetPage(
      name: Company_Mess_Manage_Details,
      page: () => CompanyMEssManageDetailsPage(),
    ),
    //政府端-项目信用评分-列表
    GetPage(
      name: Project_Credit_Point_List,
      page: () => ProjectCreditPointPage(),
    ),
    //政府端-项目信用评分-详情
    GetPage(
      name: Project_Credit_Point_Details,
      page: () => ProjectCreditPointDetailsPage(),
    ),
    //政府端-企业信用评分-列表
    GetPage(
      name: Company_Credit_Point_List,
      page: () => CompanyCreditPointPage(),
    ),
    //政府端-企业信用评分-详情
    GetPage(
      name: Company_Credit_Point_Details,
      page: () => CompanyCreditPointDetailsPage(),
    ),
  ];
}
